
package com.chongchong.system.wrapper;

import com.chongchong.core.mp.support.BaseEntityWrapper;
import com.chongchong.core.tool.utils.BeanUtil;
import com.chongchong.system.entity.EmailTemplate;
import com.chongchong.system.vo.EmailTemplateVO;

/**
 * 包装类,返回视图层所需的字段
 *
 * @author en
 * @since 2022-07-21
 */
public class EmailWrapper extends BaseEntityWrapper<EmailTemplate, EmailTemplateVO>  {

    public static EmailWrapper build() {
        return new EmailWrapper();
    }

	@Override
	public EmailTemplateVO entityVO(EmailTemplate emailTemplate) {
		EmailTemplateVO emailTemplateVO = BeanUtil.copy(emailTemplate, EmailTemplateVO.class);

		return emailTemplateVO;
	}

}
